home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / telecomm / archivers / sharutils-4.1.lha / SharUtils-4.1 / man / man1 / unshar.1 < prev    next >
Encoding:
Text File  |  1994-12-09  |  3.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. UNSHAR(1)                                               UNSHAR(1)
  5.  
  6.  
  7. NAME
  8.        unshar - unpack a shar file
  9.  
  10. SYNOPSIS
  11.        unshar  [  -d  directory  ] [ -c ] [ -e | -E exit_line ] [
  12.        file ... ]
  13.  
  14. DESCRIPTION
  15.        Unshar scans mail messages looking  for  the  start  of  a
  16.        shell  archive.  It then passes the archive through a copy
  17.        of the shell to unpack it. It will accept multiple  files.
  18.        If  no files are given, standard input is used.  This man-
  19.        ual page reflects unshar version 4.0.
  20.  
  21. OPTIONS
  22.        Options have a one letter version starting  with  -  or  a
  23.        long version starting with --. The exception is --help and
  24.        --version which does not have a short version.
  25.  
  26.        --version
  27.               Print the version number of the program on standard
  28.               output, then immediately exits.
  29.  
  30.        --help Print a help summary on standard output, then imme-
  31.               diately exits.
  32.  
  33.        -d DIRECTORY  --directory=DIRECTORY
  34.               Change directory to DIRECTORY before unpacking  any
  35.               files.
  36.  
  37.        -c  --overwrite
  38.               Passed  as  an option to the shar file.  Many shell
  39.               archive scripts (including those produced by `shar'
  40.               3.40  and  newer) accepts a -c argument to indicate
  41.               that existing files should be overwritten.
  42.  
  43.        -e  --exit-0
  44.               This option exists mainly for  people  who  collect
  45.               many  shell  archives  into  a  single mail folder.
  46.               With this option, `unshar' isolates each  different
  47.               shell  archive  from the others which have been put
  48.               in the same file, unpacking each in in  turn,  from
  49.               the  beginning  of  the  file towards its end.  Its
  50.               proper operation relies on the fact that many  shar
  51.               files are terminated by a `exit 0' at the beginning
  52.               of a line.
  53.  
  54.               Option -e is internally equivalent to -E "exit  0".
  55.  
  56.        -E STRING  --split-at=STRING
  57.               This  option  works  like  -e, but it allows you to
  58.               specify the string that separates archives if `exit
  59.               0' isn't appropriate.
  60.  
  61.  
  62.  
  63.  
  64.                          August 12, 1990                        1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. UNSHAR(1)                                               UNSHAR(1)
  71.  
  72.  
  73.               For  example, noticing that most `.signatures' have
  74.               a `--' on a line right before them, one  can  some-
  75.               times   use  `--split-at=--'  for  splitting  shell
  76.               archives which lack the `exit 0' line at end.   The
  77.               signature  will then be skipped altogether with the
  78.               headers of the following message.
  79.  
  80. SEE ALSO
  81.        shar(1)
  82.  
  83. DIAGNOSTICS
  84.        Any message from the shell may be displayed.
  85.  
  86. AUTHORS
  87.        Michael Mauldin at Carnegie-Mellon University
  88.        guido@mcvax (Guido van Rossum at CWI, Amsterdam)
  89.        davidsen@sixhub.uuxp (Bill Davidsen)
  90.        wht%n4hgf@gatech.edu (Warren Tucker)
  91.        rhg@CPS.COM (Richard H. Gumpertz)
  92.        colas@avahi.inria.fr (Colas Nahaboo)
  93.  
  94.        man pages:
  95.        jhd@irfu.se (Jan Dj{rv)
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                          August 12, 1990                        2
  131.  
  132.  
  133.